<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%String path = request.getContextPath();%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>付款历史付款信息</title>
    <style type="text/css">
    </style>
    <jsp:include page="../../import.jsp" flush="true"/>
</head>

<body class="iframeBody">
<div class="Wrapper">
    <div id="hisPayGrid" class="sq-grid"></div>
</div>

<script type="text/javascript">
    var hisPayGrid = null;
    $(function () {
        hisPayGrid = $("#hisPayGrid").ligerGrid({
            url: '<%=path%>/capital/capPayInfo/initHisPayList.do?id=${id}&paySchId=${paySchId}',
            method: 'get',
            columns: [
                {display: '实际付款金额', name: 'actPayAmt', minWidth: 100, align: 'right', enabledSort: false,
                    render:function(rowdata,index,value){
                        return '&yen;'+FormatMoney(rowdata.actPayAmt/100);
                    },
                    totalSummary:
                    {
                        type: 'sum', render: function (suminf, column, cell)
                        {
                            return '<div>已付总金额: &yen;' + FormatMoney(suminf.sum/100) + '</div>';
                        },
                        align: 'right'
                    }
                },
                {display: '实际付款时间', name: 'actPayTm', minWidth: 100, align: 'left', enabledSort: false,render:renderDate},
               /* {display: '款项', name: 'fundTypCdNm', minWidth: 100, align: 'left', enabledSort: false},*/
            ],
            usePager: false,
            root: 'rows',
            record: 'total',
            hideLoadButton: true,
            width: '100%',
            height: '100%',
            heightDiff: -2,
            checkbox: true,
            rownumbers: true,
            allowUnSelectRow: true,
            alternatingRow: false
        });
        hisPayGrid.setHeight(100);

        $("#pageloading").hide();

    });


    //格式化时间
    function renderDate(rowdata, index, value) {
        var dateStr = "";
        if (null != value) {
            var date = new Date(value);
            dateStr = DateUtils.formatDate(date, DateUtils.YYYY_MM_DD);
        }
        return dateStr;
    }
</script>

</body>
</html>
